#include "Material.h"

namespace PotatoGTK
{
	Material::Material(const char*& vertexShader, const char*& fragShader)
	{
		m_Shader = new Shader(vertexShader, fragShader);
	}

	Material::~Material()
	{

	}

	void Material::UpdateShader()
	{

	}

	void Material::Bind()
	{
		m_Shader->Bind();
	}

	void Material::UnBind()
	{
		m_Shader->UnBind();
	}

	GLint Material::GetUniformId(const std::string& uniformValueName)
	{
		return m_Shader->GetUniformId(uniformValueName);
	}

	void Material::SetUnifromMat4(const GLint& id, const glm::mat4& mat4)
	{
		m_Shader->SetUnifromMat4(id, mat4);
	}
}